package com.duqc.apollo.controller;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ApolloController
 * @Description TODO
 * @Author duqc
 * @Date 2021/5/25
 **/
@Slf4j
@RestController
@RequiredArgsConstructor
public class ApolloController {

    @Value("${configValue:default}")
    private String configValue;

    @RequestMapping("apollo/getconfig")
    public String getConfig(){
        return configValue;
    }

}
